package org.jeecg.modules.nurseuser_profile.service.impl;

import org.jeecg.modules.nurseuser_profile.entity.NurseuserProfile;
import org.jeecg.modules.tencent_esign.tencent_flowstatuscallback.entity.TencentFlowstatuscallbackInfo;
import org.jeecg.modules.tencent_esign.tencent_flowstatuscallback.mapper.TencentFlowstatuscallbackInfoMapper;
import org.jeecg.modules.nurseuser_profile.mapper.NurseuserProfileMapper;
import org.jeecg.modules.nurseuser_profile.service.INurseuserProfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @Description: 医护端护工报名表
 * @Author: jeecg-boot
 * @Date:   2025-08-30
 * @Version: V1.0
 */
@Service
public class NurseuserProfileServiceImpl extends ServiceImpl<NurseuserProfileMapper, NurseuserProfile> implements INurseuserProfileService {
    
    @Autowired
    private TencentFlowstatuscallbackInfoMapper tencentFlowstatuscallbackInfoMapper;
    
    @Autowired
    private NurseuserProfileMapper nurseuserProfileMapper;
    
    @Override
    public IPage<NurseuserProfile> page(Page<NurseuserProfile> page, QueryWrapper<NurseuserProfile> queryWrapper) {
        // 使用自定义的SQL查询，通过子查询一次性设置issign字段
        return nurseuserProfileMapper.selectNurseuserProfileWithIssign(page, queryWrapper);
    }
}